//
//  YXTaskModel.m
//  MockProject
//
//  Created by FanYu on 29/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import "YXTaskModel.h"

@implementation YXTaskModel

// load date
+ (YXTaskModel *)configLoadDataWithUID:(NSString *)uid title:(NSString *)title url:(NSString *)url {
    YXTaskModel *model = [[YXTaskModel alloc] init];
    
    model.title = title;
    model.uid = uid;
    model.url = url;
    
    return model;
}

// downloaded
+ (YXTaskModel *)configDownloadWithTitle:(NSString *)title time:(NSString *)time size:(NSString *)size isHidden:(BOOL)hidden isSelected:(BOOL)selected {
    YXTaskModel *model = [[YXTaskModel alloc] init];
    
    model.title = title;
    model.time = time;
    model.size = size;
    model.isHidden = hidden;
    model.isSelected = selected;
    
    return model;
}

// Downliading
+ (YXTaskModel *)configDownloadingWithTitle:(NSString *)title size:(NSString *)size speed:(NSString *)speed progress:(CGFloat)progress downloadStatus:(TaskStatus)status {
    YXTaskModel *model = [[YXTaskModel alloc] init];
    
    model.title = title;
    model.size = size;
    model.speed = speed;
    
    return model;
}

// Task list
+ (YXTaskModel *)configTaskWithTitle:(NSString *)title size:(NSString *)size time:(NSString *)time downloadStatus:(TaskStatus)status {
    YXTaskModel *model = [[YXTaskModel alloc] init];
    
    model.title = title;
    model.size = size;
    model.time = time;
    
    return model;
}

@end
